package com.unisedu.pay.dao;

import com.unisedu.pay.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDao  extends BaseDao<Order>{

    Order findByOrderNo(String orderNo);

    /**
     * idProject和idCompany是名称
     * @param orderNo
     * @return
     */
    Order findStrByOrderNo(String orderNo);

    List<Order> findByUserId(String userId);

    void insert(Order order);

    void updateStatus(String orderNo, Integer payType, Integer status);

    List<Order> findByUserIdAndIdProject(String userId, String idProject);

}
